package org.zhaozhen.order.service;


import org.zhaozhen.basic.service.IBaseService;
import org.zhaozhen.basic.util.PageList;
import org.zhaozhen.order.domain.AdoptOrder;
import org.zhaozhen.order.query.AdoptOrderQuery;
import org.zhaozhen.user.domain.Logininfo;

import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {
    /**
     * 领养订单
     * @param param
     * @param currentLogin
     * @return
     */
    String submit(Map<String, Object> param, Logininfo currentLogin);

    /**
     * 查询订单
     * @param query
     * @param currentLogin
     * @return
     */
    PageList<AdoptOrder> queryAdmin(AdoptOrderQuery query, Logininfo currentLogin);

    /**
     * 取消订单
     * @param orderId
     */
    void cancelByQuartz(Long orderId);
}
